﻿using System.ComponentModel;

namespace MESData.ErrorCode
{
    /// <summary>
    /// API状态枚举
    /// </summary>
    public enum ApiEnum
    {
        /// <summary>
        /// 成功
        /// </summary>
        Success = 200,
        
        /// <summary>
        /// 错误
        /// </summary>
        Error = 500,
        
        /// <summary>
        /// 未授权
        /// </summary>
        Unauthorized = 401,
        
        /// <summary>
        /// 禁止访问
        /// </summary>
        Forbidden = 403,
        
        /// <summary>
        /// 未找到
        /// </summary>
        NotFound = 404,
        
        /// <summary>
        /// 参数错误
        /// </summary>
        BadRequest = 400
    }
}
